﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zarzadzanie_Restautacja.Model;

namespace Zarzadzanie_Restautacja.Helpers
{
    public static class AppSettings
    {
        public static int LoggedUserId 
        {
            get 
            {
                return (int)Properties.Settings.Default["LoggedUserId"];
            }
            set
            {
                Properties.Settings.Default["LoggedUserId"] = value;
                Properties.Settings.Default.Save();
            }
        }

        public static int LoggedUserFunction
        {
            get
            {
                return (int)Properties.Settings.Default["LoggedUserFuncion"];
            }
            set
            {
                Properties.Settings.Default["LoggedUserFuncion"] = value;
                Properties.Settings.Default.Save();
            }
        }
    }
}
